package mofei.concurrent.task;

/**
 * @author mofei@staff.weibo.com
 * @date 2019/2/22 1:40 PM
 */
public class WaitForTimeTask implements Runnable {
    @Override
    public void run() {
        System.out.println("Thread:"+Thread.currentThread().getName()+"调用wait(5分钟)");
        try {
            synchronized (this){
                this.wait(1000*60*5);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
